Skip to content

feat: implement automated refresh token cleanup and schema optimization - #1

Closed
udaycodespace wants to merge 1 commit into
mainfrom
feat/543-refresh-token-cleanup
Closed

feat: implement automated refresh token cleanup and schema optimization#1
udaycodespace wants to merge 1 commit into
mainfrom
feat/543-refresh-token-cleanup

Conversation

@udaycodespace

Copy link
Copy Markdown
Owner

Summary

Implements automated refresh token cleanup for expired and revoked refresh tokens.

Changes made

Area | Change -- | -- Database | Added indexes on expiresAt and revokedAt for faster cleanup queries Service | Added refresh token cleanup service Plugin | Added scheduled cleanup Fastify plugin Startup | Runs cleanup on application startup Configuration | Added REFRESH_TOKEN_CLEANUP_INTERVAL_MS Logging | Added cleanup success/failure logs Shutdown | Clears scheduler on application shutdown Tests | Added service and plugin test coverage

Screenshots

Files changed

Test execution

TypeScript validation

Clean git status


Note

The issue requests a demo video showing refresh token cleanup behavior.

For now, I have attached validation screenshots while the implementation is being reviewed. If additional changes are requested during review, I will address them first and then record a final demo video showing the complete cleanup flow.

@github-actions

Copy link
Copy Markdown

Hi @udaycodespace,

Thanks for opening this pull request.

This PR has been automatically classified based on the files modified.

Applied Labels

  • gssoc:approved
  • backend

Primary Review Area

  • backend

Reviewer

@Harxhit has been identified as the primary reviewer for this pull request.

If you have any questions regarding the affected area or implementation details, feel free to reach out to the assigned reviewer.

Thank you for your contribution!

@github-actions

Copy link
Copy Markdown

CI — All Checks Passed

Backend — PASS

Check Result
Lint PASS
Test PASS
Typecheck PASS

Mobile — SKIP

Check Result
Lint -
Test -

Web — SKIP

Check Result
Build -

Last updated: Tue, 16 Jun 2026 08:23:49 GMT

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant